package kr.hkit.powerjava.chapter18;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.border.EmptyBorder;
import javax.swing.JTextField;

import kr.hkit.powerjava.chapter26.dto.Department;

public class SwingComponentEx extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3213498274147950169L;
	private JTabbedPane contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					SwingComponentEx frame = new SwingComponentEx();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public SwingComponentEx() {
		initialize();
	}
	private void initialize() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JTabbedPane();
		
		setContentPane(contentPane);
		
		Panel_JList panel_List = new Panel_JList();
		contentPane.addTab("JList", null, panel_List, null);
		
		Panel_JComboBox panel_Combo = new Panel_JComboBox();
		contentPane.addTab("JComboBox", null, panel_Combo, null);
		
		Panel_Dialog panel_Dialog = new Panel_Dialog();
		contentPane.addTab("JDialog", null, panel_Dialog, null);
		
		Panel_JTable panel_JTable = new Panel_JTable();
		contentPane.addTab("JTable", null, panel_JTable, null);
		
		Department d = new Department();
		d.setDeptName("부서 dd");
	}

}
